home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / alertwin.dxr / 00017_no button.ls < prev    next >
Encoding:
Text File  |  2000-01-28  |  427 b   |  26 lines

  1. property ancestor
  2. global gAlertWin, gGraph
  3.  
  4. on beginSprite me
  5.   spNum = me.spriteNum
  6.   spLoc = the loc of sprite me.spriteNum
  7.   ancestor = new(script("generic button"), "no", "internal", spNum, spLoc, me)
  8.   Inscope(ancestor)
  9.   return me
  10. end
  11.  
  12. on exitFrame me
  13.   doRollover(ancestor)
  14. end
  15.  
  16. on mouseDown me
  17.   trackMouse(ancestor)
  18. end
  19.  
  20. on performFunction me
  21.   tell the stage
  22.     openGraphWindow()
  23.   end tell
  24.   closeMe(gAlertWin)
  25. end
  26.